package com.rpoonolly.simplegame;

import android.content.res.Resources;

import com.rpoonolly.simpleandroidgame.R;

public class Config {
	public static final String GAME_TITLE = "Simple 2d Game";
	public static final int WINDOW_REDRAW_DELAY = 20;
	
	public static final String DEFAULT_MAP_NAME;
	
	public static final int PLAYER_WIDTH;
	public static final int PLAYER_HEIGHT;
	public static final double PLAYER_SPEED;
	public static final double ENEMY_MAX_SPEED;
	
	public static final double ENEMY_REPEL_FACTOR;
	
	public static final String ENT_GRP_PLAYER;
	public static final String ENT_GRP_ENEMIES;
	public static final String ENT_GRP_WORLD_OBJS;
	
	public static final int ENT_COLOR_PLAYER;
	public static final int ENT_COLOR_WORLD_OBJ;
	public static final int ENT_COLOR_ENEMY;
	public static final int ENT_COLOR_DEFAULT;
	
	public static final int COLOR_BACKGROUND;
	
	static {
		Resources res = Resources.getSystem();
		
		DEFAULT_MAP_NAME = res.getString(R.string.app_name);
		
		PLAYER_WIDTH = res.getInteger(R.integer.player_width);
		PLAYER_HEIGHT = res.getInteger(R.integer.player_height);
		PLAYER_SPEED = res.getInteger(R.integer.player_speed);
		
		ENEMY_MAX_SPEED = res.getInteger(R.integer.enemy_speed);
		ENEMY_REPEL_FACTOR = res.getInteger(R.integer.enemy_repel_factor);
		
		ENT_GRP_PLAYER = res.getString(R.string.entity_group_player);
		ENT_GRP_ENEMIES = res.getString(R.string.entity_group_enemies);
		ENT_GRP_WORLD_OBJS = res.getString(R.string.entity_group_worldObjs);
		
		ENT_COLOR_PLAYER = res.getColor(R.color.ent_color_player);
		ENT_COLOR_ENEMY = res.getColor(R.color.ent_color_enemy);
		ENT_COLOR_WORLD_OBJ = res.getColor(R.color.ent_color_world_obj);
		ENT_COLOR_DEFAULT = res.getColor(R.color.ent_color_default);
		
		COLOR_BACKGROUND = res.getColor(R.color.background_color);
	}
}
